package com.alice.springcloud;

import com.alice.myrule.AliceRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

//Ribbon和Eureka整合后，客户端可以直接调用方法，不用关心IP地址和端口号
@SpringBootApplication
@EnableEurekaClient
//在微服务启动时就能去u加载我们自定义Ribbon类
@RibbonClient(name = "SPRINGCLOUD-CONFIG-DEV",configuration = AliceRule.class)
public class DeptConsumer_80 {
    public static void main(String[] args) {
        SpringApplication.run(DeptConsumer_80.class,args);
    }
}
